package com.dhl.observer;

/**
 * @title: Client
 * @Author danghailiang
 * @Date: 2022/8/20 17:40
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData(new CurrentConditions());
        weatherData.setData(10,20,30);
        System.out.println("天气发生变化，进行通知");
        weatherData.setData(30,50,20);
    }
}
